package org.example.car.system.service.impl;

import org.example.car.system.mapper.UserRoleMapper;
import org.example.car.system.service.UserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: cy
 * @Date: 2024/6/27 17:19
 */
@Service
public class UserRoleServiceImpl implements UserRoleService {

    @Autowired
    private UserRoleMapper userRoleMapper;

    @Override
    public List<Integer> getRoleIds(Integer userId) {
        return userRoleMapper.getRoleIds(userId);
    }
}
